package com.sunk.ytmall.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.util.Date;

/**
 * @Author: Sunk 673116067@qq.com
 * @Date: 2018/5/9 14:28
 * @Description:
 */
@TableName("yt_address")
public class Address {
    @TableId("address_id")
    private Long addressId;
    private Long userId;
    private String recipientsName;//收货人名称
    private String recipientsPhone;
    private String recipientsAddress;
    private Boolean recipientsDefault;
    private Date createTime;
    private Date updateTime;

    @Override
    public String toString() {
        return "Address{" +
                "addressId=" + addressId +
                ", userId=" + userId +
                ", recipientsName='" + recipientsName + '\'' +
                ", recipientsPhone='" + recipientsPhone + '\'' +
                ", recipientsAddress='" + recipientsAddress + '\'' +
                ", recipientsDefault=" + recipientsDefault +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getRecipientsName() {
        return recipientsName;
    }

    public void setRecipientsName(String recipientsName) {
        this.recipientsName = recipientsName;
    }

    public String getRecipientsPhone() {
        return recipientsPhone;
    }

    public void setRecipientsPhone(String recipientsPhone) {
        this.recipientsPhone = recipientsPhone;
    }

    public String getRecipientsAddress() {
        return recipientsAddress;
    }

    public void setRecipientsAddress(String recipientsAddress) {
        this.recipientsAddress = recipientsAddress;
    }

    public Boolean getRecipientsDefault() {
        return recipientsDefault;
    }

    public void setRecipientsDefault(Boolean recipientsDefault) {
        this.recipientsDefault = recipientsDefault;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
